package logic

import (
	"context"
	"novel/models/mysql"

	"novel/novelrpc/internal/svc"
	"novel/novelrpc/novelrpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type BookShelfShowLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewBookShelfShowLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BookShelfShowLogic {
	return &BookShelfShowLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 书架详情
func (l *BookShelfShowLogic) BookShelfShow(in *novelrpc.BookShelfShowRequest) (*novelrpc.BookShelfShowResponse, error) {
	// todo: add your logic here and delete this line
	
	show := mysql.BookSelfShow(mysql.DB, in)
	return &novelrpc.BookShelfShowResponse{
		Show: show,
	}, nil
}
